package com.wf.course.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.utils.page.PageBean;
import com.wf.course.dao.IActivityEntryMapper;
import com.wf.course.model.comm.ActivityEntry;
import com.wf.course.service.IActivityEntryService;

@Service
@Transactional
public class IActivityEntryServiceImpl implements IActivityEntryService {
	
	@Autowired
	private IActivityEntryMapper mapper;

	@Override
	public void getActivityEntryList(PageBean<ActivityEntry> pageBean) {
		// TODO Auto-generated method stub
		
		pageBean.setResults(mapper.getActivityEntryList(pageBean));
		pageBean.setTotalCount(mapper.getActivityEntryCount(pageBean));
		
	}

	@Override
	public void saveActivityEntry(ActivityEntry activityEntry) {
		// TODO Auto-generated method stub
		mapper.saveActivityEntry(activityEntry);
		
	}

	@Override
	public void deleteActivityEntry(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteActivityEntry(id);
		
	}

	@Override
	public ActivityEntry downLoadActivityEntry(Integer id) {
		// TODO Auto-generated method stub
		return mapper.downLoadActivityEntry(id);
	}

	@Override
	public Integer updateActivityEntry(ActivityEntry activityEntry) {
		// TODO Auto-generated method stub
		return mapper.updateActivityEntry(activityEntry);
		
	}

	 

}
